<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<base href="<%=basePath%>">
		<meta charset="utf-8" />
		<title></title>
		<meta name="description" content="overview & stats" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link href="static/css/bootstrap.min.css" rel="stylesheet" />
		<link href="static/css/bootstrap-responsive.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="static/css/font-awesome.min.css" />
		<!-- 下拉框 -->
		<link rel="stylesheet" href="static/css/chosen.css" />
		
		<link rel="stylesheet" href="static/css/ace.min.css" />
		<link rel="stylesheet" href="static/css/ace-responsive.min.css" />
		<link rel="stylesheet" href="static/css/ace-skins.min.css" />
		
		<link rel="stylesheet" href="static/css/bootstrap-datetimepicker.css" /><!-- 日期框 -->
		<link rel="stylesheet" href="static/css/datepicker.css" /><!-- 日期框 -->
		<script type="text/javascript" src="static/js/jquery-1.7.2.js"></script>
		<script type="text/javascript" src="static/js/jquery.tips.js"></script>
		<script type="text/javascript" src="static/js/bootstrap-datetimepicker.js"></script><!-- 日期框 -->
		<style type="text/css">
		</style>
	</head>
<body>
	<form  name="Form" id="Form" method="post" >
		<input type="hidden" name="base_id" id="base_id" value="${pd.base_id}"/>
		<div id="zhongxin">
		<fieldset>
			<legend>基本信息表</legend>
		<table id="table_report" class="table table-striped table-bordered table-hover">
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">姓名:</td>
				<td style="width:70px;"><input readonly type="text" name="base_name" id="base_name" value="${pd.base_name}"/></td>
				<td style="width:70px;text-align: right;padding-top: 13px;">性别:</td>
				<td><c:if test="${pd.base_sex==0}"><input readonly type="text" name="base_sex" id="base_sex" value="男"/></c:if>
					<c:if test="${pd.base_sex==1}"><input readonly type="text" name="base_sex" id="base_sex" value="女"/></c:if>
				</td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">身份证号:</td>
				<td><input readonly type="text" name="base_identity" id="base_identity" value="${pd.base_identity}"/></td>
				<td style="width:70px;text-align: right;padding-top: 13px;">出生日期:</td>
				<td><input type="text" name="base_birthday" id="base_birthday" readonly/>
				<input type="text" name="base_birthday1" id="base_birthday1" value="${pd.base_birthday}" style="display:none;"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">民族:</td>
				<td><input readonly type="text" name="base_nationality" id="base_nationality" value="${pd.base_nationality}"/></td>
				<td style="width:70px;text-align: right;padding-top: 13px;">籍贯:</td>
				<td><input readonly type="text" name="base_native_place" id="base_native_place" value="${pd.base_native_place}"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">政治面貌:</td>
				<td><input readonly type="text" name="base_politics" id="base_politics" value="${pd.base_politics}"/></td>
				<td style="width:70px;text-align: right;padding-top: 13px;">联系电话:</td>
				<td><input readonly type="text" name="base_phone" id="base_phone" value="${pd.base_phone}"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">婚姻状态:</td>
				<td>
					<c:if test="${pd.base_marriage==0}" ><input readonly type="text" value="未婚"/></c:if>
					<c:if test="${pd.base_marriage==1}" ><input readonly type="text" value="已婚"/></c:if>
					<c:if test="${pd.base_marriage==2}" ><input readonly type="text" value="离异"/></c:if>
				</td>
				<td style="width:70px;text-align: right;padding-top: 13px;">邮箱:</td>
				<td><input readonly type="text" name="base_email" id="base_email" value="${pd.base_email}"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">档案编号:</td>
				<td><input readonly type="text" name="base_record_number" id="base_record_number" value="${pd.base_record_number}"/></td>
				<td style="width:70px;text-align: right;padding-top: 13px;">档案位置:</td>
				<td><input readonly type="text" name="base_record_position" id="base_record_position" value="${pd.base_record_position}" /></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">现住址:</td>
				<td><input readonly type="text" name="base_address" id="base_address" value="${pd.base_address}"/>
				</td>
				
				<td style="width:70px;text-align: right;padding-top: 13px;">学历:</td>
				<td>
					<c:if test="${pd.base_education_background == 0}"><input readonly type="text" value="小学"/></c:if>
					<c:if test="${pd.base_education_background == 1}"><input readonly type="text" value="初中"/></c:if>
					<c:if test="${pd.base_education_background == 2}"><input readonly type="text" value="中专"/></c:if>
					<c:if test="${pd.base_education_background == 3}"><input readonly type="text" value="高中"/></c:if>
					<c:if test="${pd.base_education_background == 4}"><input readonly type="text" value="大专"/></c:if>
					<c:if test="${pd.base_education_background == 5}"><input readonly type="text" value="本科"/></c:if>
					<c:if test="${pd.base_education_background == 6}"><input readonly type="text" value="硕士研究生"/></c:if>
					<c:if test="${pd.base_education_background == 7}"><input readonly type="text" value="博士研究生"/></c:if>
				</td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">毕业院校:</td>
				<td><input readonly type="text" name="base_graduation" id="base_graduation" value="${pd.base_graduation}"/></td>
			
				<td style="width:70px;text-align: right;padding-top: 13px;">专业:</td>
				<td><input readonly type="text" name="base_major" id="base_major" value="${pd.base_major}"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">员工类型:</td>
				<td>
					<c:if test="${pd.base_employee_type==0}" ><input readonly type="text" value="合同"/></c:if>
					<c:if test="${pd.base_employee_type==1}" ><input readonly type="text" value="临时"/></c:if>
					<c:if test="${pd.base_employee_type==2}" ><input readonly type="text" value="返聘"/></c:if>
				</td> 
				<td style="width:70px;text-align: right;padding-top: 13px;">部门:</td>
				<td>
					<c:forEach items="${deptList}" var="department">
						<c:if test="${pd.department_id==department.departmentId}"><input readonly type="text" value="${department.departmentName }"/></c:if>
					</c:forEach>
				</td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">照片:</td>
				<td colspan="3">
                    <img style="width:80px;height:80px;" src="${pd.base_photo}"/>
				</td>
			</tr>
		</table>
		</fieldset>
		<fieldset>
			<legend>工作经历表</legend>
		<table class="table table-striped table-bordered table-hover">
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">入职时间:</td>
				<td style="width:70px;">
					<input readonly type="text" name="work_entrytime" id="work_entrytime" readonly/>
					<input type="text" name="work_entrytime1" id="work_entrytime1" value="${pd.work_entrytime}" style="display:none;"/>
				</td>
				
				<td style="width:70px;text-align: right;padding-top: 13px;">职位:</td>
				<td><input readonly type="text" name="work_position" id="work_position" value="${pd.work_position}"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">工作经验:</td>
				<td><input readonly type="text" name="work_workingage" id="work_workingage" value="${pd.work_workingage}" /></td>
				<td style="width:70px;text-align: right;padding-top: 13px;">就职状态:</td>
				<td>
					<c:if test="${pd.work_status == '0'}"><input readonly type="text" value="试用"/></c:if>
					<c:if test="${pd.work_status == '1'}"><input readonly type="text" value="在岗"/></c:if>
					<c:if test="${pd.work_status == '2'}"><input readonly type="text" value="待岗"/></c:if>
					<c:if test="${pd.work_status == '3'}"><input readonly type="text" value="见习"/></c:if>
					<c:if test="${pd.work_status == '4'}"><input readonly type="text" value="离职"/></c:if>
					<c:if test="${pd.work_status == '5'}"><input readonly type="text" value="退休"/></c:if>
				</td>
			</tr>
			<c:if test="${pd.rank==1}">
				<tr>
					<td style="width:70px;text-align: right;padding-top: 13px;">编号:</td>
					<td><input readonly type="text" name="work_serial_number" id="work_serial_number" value="${pd.work_serial_number}" readonly/></td>
					<td style="width:70px;text-align: right;padding-top: 13px;">工号:</td>
					<td><input readonly type="text" name="work_job_number" id="work_job_number" value="${pd.work_job_number}" readonly/></td>
				</tr>
			</c:if>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">特长:</td>
				<td><input readonly type="text" name="work_speciality" id="work_speciality" value="${pd.work_speciality}"/></td>
				<td style="width:70px;text-align: right;padding-top: 13px;">驾驶证:</td>
				<td>
					<c:if test="${pd.work_driver_licence == '0'}"><input readonly type="text" value="A1"/></c:if>
					<c:if test="${pd.work_driver_licence == '1'}"><input readonly type="text" value="A2"/></c:if>
					<c:if test="${pd.work_driver_licence == '2'}"><input readonly type="text" value="A3"/></c:if>
					<c:if test="${pd.work_driver_licence == '3'}"><input readonly type="text" value="B1"/></c:if>
					<c:if test="${pd.work_driver_licence == '4'}"><input readonly type="text" value="B2"/></c:if>
					<c:if test="${pd.work_driver_licence == '5'}"><input readonly type="text" value="C1"/></c:if>
					<c:if test="${pd.work_driver_licence == '6'}"><input readonly type="text" value="C2"/></c:if>
					<c:if test="${pd.work_driver_licence == '7'}"><input readonly type="text" value="C3"/></c:if>
					<c:if test="${pd.work_driver_licence == '8'}"><input readonly type="text" value="C4"/></c:if>
				</td>
			</tr>
		</table>
		</fieldset>
		<fieldset>
			<legend>家庭背景表</legend>
			<table class="table table-striped table-bordered table-hover">
				<tr>
					<td style="width:70px;text-align: right;padding-top: 13px;">称谓:</td>
					<td><input readonly type="text" name="relation_appellation1" id="relation_appellation1" value="${pd.relation_appellation1}"/></td>
					<td style="width:70px;text-align: right;padding-top: 13px;">称谓:</td>
					<td><input readonly type="text" name="relation_appellation2" id="relation_appellation2" value="${pd.relation_appellation2}"/></td>
					<td style="width:70px;text-align: right;padding-top: 13px;">称谓:</td>
					<td><input readonly type="text" name="relation_appellation3" id="relation_appellation3" value="${pd.relation_appellation3}"/></td>
				</tr>
				<tr>
					<td style="width:70px;text-align: right;padding-top: 13px;">姓名:</td>
					<td><input readonly type="text" name="relation_name1" id="relation_name1" value="${pd.relation_name1}"/></td>
					<td style="width:70px;text-align: right;padding-top: 13px;">姓名:</td>
					<td><input readonly type="text" name="relation_name2" id="relation_name2" value="${pd.relation_name2}"/></td>
					<td style="width:70px;text-align: right;padding-top: 13px;">姓名:</td>
					<td><input readonly type="text" name="relation_name3" id="relation_name3" value="${pd.relation_name3}"/></td>
				</tr>
				<tr>
					<td style="width:70px;text-align: right;padding-top: 13px;">年龄:</td>
					<td><input readonly type="text" name="relation_age1" id="relation_age1" value="${pd.relation_age1}"/></td>
					<td style="width:70px;text-align: right;padding-top: 13px;">年龄:</td>
					<td><input readonly type="text" name="relation_age2" id="relation_age2" value="${pd.relation_age2}"/></td>
					<td style="width:70px;text-align: right;padding-top: 13px;">年龄:</td>
					<td><input readonly type="text" name="relation_age3" id="relation_age3" value="${pd.relation_age3}"/></td>
				</tr>
				<tr>
					<td style="width:70px;text-align: right;padding-top: 13px;">电话:</td>
					<td><input readonly type="text" name="relation_phone1" id="relation_phone1" value="${pd.relation_phone1}"/></td>
					<td style="width:70px;text-align: right;padding-top: 13px;">电话:</td>
					<td><input readonly type="text" name="relation_phone2" id="relation_phone2" value="${pd.relation_phone2}"/></td>
					<td style="width:70px;text-align: right;padding-top: 13px;">电话:</td>
					<td><input readonly type="text" name="relation_phone3" id="relation_phone3" value="${pd.relation_phone3}"/></td>
				</tr>
				<tr>
					<td style="width:70px;text-align: right;padding-top: 13px;">工作单位:</td>
					<td><input readonly type="text" name="relation_workplace1" id="relation_workplace1" value="${pd.relation_workplace1}"/></td>
					<td style="width:70px;text-align: right;padding-top: 13px;">工作单位:</td>
					<td><input readonly type="text" name="relation_workplace2" id="relation_workplace2" value="${pd.relation_workplace2}"/></td>
					<td style="width:70px;text-align: right;padding-top: 13px;">工作单位:</td>
					<td><input readonly type="text" name="relation_workplace3" id="relation_workplace3" value="${pd.relation_workplace3}"/></td>
				</tr>
				<tr>
				<td style="text-align: center;" colspan="10">
					<a class="btn btn-mini btn-danger" href="<%=basePath%>employee/list.do">取消</a>
				</td>
			</tr>
			</table>
		</fieldset>
		</div>
		
	</form>
		<!-- 引入 -->
		<script type="text/javascript">window.jQuery || document.write("<script src='static/js/jquery-1.9.1.min.js'>\x3C/script>");</script>
		<script src="static/js/bootstrap.min.js"></script>
		<script src="static/js/ace-elements.min.js"></script>
		<script src="static/js/ace.min.js"></script>
		<script type="text/javascript" src="static/js/chosen.jquery.min.js"></script><!-- 下拉框 -->
		<script type="text/javascript" src="static/js/bootstrap-datepicker.min.js"></script><!-- 日期框 -->
		<script type="text/javascript">
		$(top.hangge());
		$(function() {
			//单选框
			$(".chzn-select").chosen(); 
			$(".chzn-select-deselect").chosen({allow_single_deselect:true}); 
			
			$('.date-picker').datepicker(
				{
	                autoclose:true,
	                format: "yyyy-mm-dd",
	                language: 'cn',
	                clearBtn:true,
	                todayHighlight: true
	            }
			);
			
			var birthday1=$("#base_birthday1").val().substr(0,10);
			$("#base_birthday").val(birthday1);
			
			var entrytime1=$("#work_entrytime1").val().substr(0,10);
			$("#work_entrytime").val(entrytime1);
			//日期框
			$(".form_datetime").datetimepicker({format: 'yyyy-mm-dd',autoclose: true});
			
		});
		
		</script>
</body>
</html>